64-bit mod_perl 2 on Mac OSX 10.5 (Leopard)
am 10.10.2008 00:31:40 von Chetan Sarva
Hi,
I'm trying to compile mod_perl 2 on a Xeon (x86_64) box. I'm unclear
as to the dependencies I need to compile it correctly. Everything is
default as shipped by Apple. A bit of investigation reveals the
following potential mismatch -
geonosis:~ chetan$ which perl
/usr/bin/perl
geonosis:~ chetan$ file `which perl`
/usr/bin/perl: Mach-O universal binary with 2 architectures
/usr/bin/perl (for architecture ppc7400): Mach-O executable ppc
/usr/bin/perl (for architecture i386): Mach-O executable i386
geonosis:~ chetan$ which httpd
/usr/sbin/httpd
geonosis:~ chetan$ file `which httpd`
/usr/sbin/httpd: Mach-O universal binary with 4 architectures
/usr/sbin/httpd (for architecture ppc7400): Mach-O executable ppc
/usr/sbin/httpd (for architecture ppc64): Mach-O 64-bit executable ppc64
/usr/sbin/httpd (for architecture i386): Mach-O executable i386
/usr/sbin/httpd (for architecture x86_64): Mach-O 64-bit executable
x86_64
resulting in -
httpd: Syntax error on line 117 of /private/etc/apache2/httpd.conf:
Cannot load /usr/libexec/apache2/mod_perl.so into server: dlopen(/usr/
libexec/apache2/mod_perl.so, 10): no suitable image found. Did find:\n
\t/usr/libexec/apache2/mod_perl.so: no matching architecture in
universal wrapper
Which is what leads me to believe that I need to build x86_64 perl and
mod_perl to make it work. Are my assumptions correct?
I ask because I'm having trouble building perl..
chetan
Re: 64-bit mod_perl 2 on Mac OSX 10.5 (Leopard)
am 10.10.2008 01:08:08 von Fred Moyer
Chetan Sarva wrote:
> Hi,
>
> I'm trying to compile mod_perl 2 on a Xeon (x86_64) box. I'm unclear as
> to the dependencies I need to compile it correctly. Everything is
> default as shipped by Apple. A bit of investigation reveals the
> following potential mismatch -
>
....
> geonosis:~ chetan$ which httpd
> /usr/sbin/httpd
> geonosis:~ chetan$ file `which httpd`
> /usr/sbin/httpd: Mach-O universal binary with 4 architectures
> /usr/sbin/httpd (for architecture ppc7400): Mach-O executable ppc
> /usr/sbin/httpd (for architecture ppc64): Mach-O 64-bit executable ppc64
> /usr/sbin/httpd (for architecture i386): Mach-O executable i386
> /usr/sbin/httpd (for architecture x86_64): Mach-O 64-bit executable
> x86_64
>
>
> resulting in -
>
> httpd: Syntax error on line 117 of /private/etc/apache2/httpd.conf:
> Cannot load /usr/libexec/apache2/mod_perl.so into server:
> dlopen(/usr/libexec/apache2/mod_perl.so, 10): no suitable image found.
> Did find:\n\t/usr/libexec/apache2/mod_perl.so: no matching architecture
> in universal wrapper
>
>
> Which is what leads me to believe that I need to build x86_64 perl and
> mod_perl to make it work. Are my assumptions correct?
I have found Leopard's default builds to not be that developer friendly
(perhaps a good indicator is that you have to install XCode tools to get
gcc and do anything). I build perl, mod_perl, and httpd from source on
my Leopard platforms. Maybe I don't need to do this, but I've suffered
at the hands of Apple's system upgrades enough times that I have found
it is worth my while.
> I ask because I'm having trouble building perl..
When you go through the perl configure process and it asks if you want
to specify any additional CFLAGS, type '-fPIC' - this is needed for 64
bit mod_perl. I always build perl with the prefix option, and then add
the bin location to my PATH variable, and use that to build mod_perl.
Re: 64-bit mod_perl 2 on Mac OSX 10.5 (Leopard)
am 13.10.2008 20:30:43 von Chetan Sarva
On Oct 9, 2008, at 7:08 PM, Fred Moyer wrote:
>> Which is what leads me to believe that I need to build x86_64 perl
>> and mod_perl to make it work. Are my assumptions correct?
>
> I have found Leopard's default builds to not be that developer
> friendly (perhaps a good indicator is that you have to install XCode
> tools to get gcc and do anything). I build perl, mod_perl, and
> httpd from source on my Leopard platforms. Maybe I don't need to do
> this, but I've suffered at the hands of Apple's system upgrades
> enough times that I have found it is worth my while.
>
>
>> I ask because I'm having trouble building perl..
>
> When you go through the perl configure process and it asks if you
> want to specify any additional CFLAGS, type '-fPIC' - this is needed
> for 64 bit mod_perl. I always build perl with the prefix option,
> and then add the bin location to my PATH variable, and use that to
> build mod_perl.
Thanks, I figured as much. Perl compilation broke with the following:
/perl installperl --destdir=
Can't load 'lib/auto/File/Glob/Glob.bundle' for module File::Glob:
dlopen(lib/auto/File/Glob/Glob.bundle, 1): no suitable image found.
Did find:
lib/auto/File/Glob/Glob.bundle: mach-o, but wrong architecture at lib/
XSLoader.pm line 70.
at lib/File/Glob.pm line 96
Compilation failed in require at installperl line 132.
BEGIN failed--compilation aborted at installperl line 132.
make[1]: *** [install.perl] Error 2
make: *** [install] Error 2
Going to configure it and try again. Not sure if I screwed up one of
the thousand options or not...
chetan
RE: 64-bit mod_perl 2 on Mac OSX 10.5 (Leopard)
am 13.10.2008 21:59:15 von Srinivas Gadde
--_93e12562-5637-4e52-8538-bff8f1bacd33_
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
45% commission is offered.
see below
--------------
My team can work for you and for your projects.
http://www.gecpvt.com/NoIpResume.pdf
http://gecpvt.com/future_patents/
http://www.gecpvt.com/Jobs
http://www.gecpvt.com/Sales
=20
srinivas=20
--------------
> CC: modperl@perl.apache.org
> From: csarva@operative.com
> To: fred@redhotpenguin.com
> Subject: Re: 64-bit mod_perl 2 on Mac OSX 10.5 (Leopard)
> Date: Mon=2C 13 Oct 2008 14:30:43 -0400
>=20
>=20
> On Oct 9=2C 2008=2C at 7:08 PM=2C Fred Moyer wrote:
> >> Which is what leads me to believe that I need to build x86_64 perl =20
> >> and mod_perl to make it work. Are my assumptions correct?
> >
> > I have found Leopard's default builds to not be that developer =20
> > friendly (perhaps a good indicator is that you have to install XCode =20
> > tools to get gcc and do anything). I build perl=2C mod_perl=2C and =20
> > httpd from source on my Leopard platforms. Maybe I don't need to do =20
> > this=2C but I've suffered at the hands of Apple's system upgrades =20
> > enough times that I have found it is worth my while.
> >
> >
> >> I ask because I'm having trouble building perl..
> >
> > When you go through the perl configure process and it asks if you =20
> > want to specify any additional CFLAGS=2C type '-fPIC' - this is needed =
=20
> > for 64 bit mod_perl. I always build perl with the prefix option=2C =20
> > and then add the bin location to my PATH variable=2C and use that to =20
> > build mod_perl.
>=20
> Thanks=2C I figured as much. Perl compilation broke with the following:
>=20
> /perl installperl --destdir=3D
> Can't load 'lib/auto/File/Glob/Glob.bundle' for module File::Glob: =20
> dlopen(lib/auto/File/Glob/Glob.bundle=2C 1): no suitable image found. =20
> Did find:
> lib/auto/File/Glob/Glob.bundle: mach-o=2C but wrong architecture at lib/=
=20
> XSLoader.pm line 70.
> at lib/File/Glob.pm line 96
> Compilation failed in require at installperl line 132.
> BEGIN failed--compilation aborted at installperl line 132.
> make[1]: *** [install.perl] Error 2
> make: *** [install] Error 2
>=20
> Going to configure it and try again. Not sure if I screwed up one of =20
> the thousand options or not...
>=20
> chetan
____________________________________________________________ _____
Want to do more with Windows Live? Learn =9310 hidden secrets=94 from Jamie=
..
http://windowslive.com/connect/post/jamiethomson.spaces.live .com-Blog-cns!5=
50F681DAD532637!5295.entry?ocid=3DTXT_TAGLM_WL_domore_092008 =
--_93e12562-5637-4e52-8538-bff8f1bacd33_
Content-Type: text/html; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
=
45% commission is offered.
see below
--------------
My team ca=
n work for you and for your projects.
http://www.gecpvt.com/NoIpResume.p=
df
http://gecpvt.com/future_patents/
http://www.gecpvt.com/Jobs
ht=
tp://www.gecpvt.com/Sales
 =3B
srinivas
--------------
>
>=3B CC: modperl@perl.apache.org
>=
=3B From: csarva@operative.com
>=3B To: fred@redhotpenguin.com
>=
=3B Subject: Re: 64-bit mod_perl 2 on Mac OSX 10.5 (Leopard)
>=3B Date=
: Mon=2C 13 Oct 2008 14:30:43 -0400
>=3B
>=3B
>=3B On Oct =
9=2C 2008=2C at 7:08 PM=2C Fred Moyer wrote:
>=3B >=3B>=3B Which i=
s what leads me to believe that I need to build x86_64 perl
>=3B >=
=3B>=3B and mod_perl to make it work. Are my assumptions correct?
>=
=3B >=3B
>=3B >=3B I have found Leopard's default builds to not be=
that developer
>=3B >=3B friendly (perhaps a good indicator is th=
at you have to install XCode
>=3B >=3B tools to get gcc and do any=
thing). I build perl=2C mod_perl=2C and
>=3B >=3B httpd from sour=
ce on my Leopard platforms. Maybe I don't need to do
>=3B >=3B th=
is=2C but I've suffered at the hands of Apple's system upgrades
>=3B=
>=3B enough times that I have found it is worth my while.
>=3B >=
=3B
>=3B >=3B
>=3B >=3B>=3B I ask because I'm having troubl=
e building perl..
>=3B >=3B
>=3B >=3B When you go through the=
perl configure process and it asks if you
>=3B >=3B want to speci=
fy any additional CFLAGS=2C type '-fPIC' - this is needed
>=3B >=
=3B for 64 bit mod_perl. I always build perl with the prefix option=2C
r>>=3B >=3B and then add the bin location to my PATH variable=2C and us=
e that to
>=3B >=3B build mod_perl.
>=3B
>=3B Thanks=2C=
I figured as much. Perl compilation broke with the following:
>=3B
r>>=3B /perl installperl --destdir=3D
>=3B Can't load 'lib/auto/File=
/Glob/Glob.bundle' for module File::Glob:
>=3B dlopen(lib/auto/File/=
Glob/Glob.bundle=2C 1): no suitable image found.
>=3B Did find:
=
>=3B lib/auto/File/Glob/Glob.bundle: mach-o=2C but wrong architecture at=
lib/
>=3B XSLoader.pm line 70.
>=3B at lib/File/Glob.pm line =
96
>=3B Compilation failed in require at installperl line 132.
>=
=3B BEGIN failed--compilation aborted at installperl line 132.
>=3B ma=
ke[1]: *** [install.perl] Error 2
>=3B make: *** [install] Error 2
=
>=3B
>=3B Going to configure it and try again. Not sure if I screwe=
d up one of
>=3B the thousand options or not...
>=3B
>=3B=
chetan
Want to do more with Windows Live? Learn =9310 hidde=
n secrets=94 from Jamie.
iethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.ent ry?ocid=3DTXT_T=
AGLM_WL_domore_092008' target=3D'_new'>Learn Now
=
--_93e12562-5637-4e52-8538-bff8f1bacd33_--